package com.laamella.syntherface.synths.alesis.micron.gui;

import com.laamella.syntherface.synths.alesis.micron.model.Filters;

@SuppressWarnings("serial") public class Filter1Panel extends javax.swing.JPanel {

    /** Creates new form Filter1Panel */
    public Filter1Panel() {
        initComponents();
    }

	public void setModel(Filters filters){
		typeLabel.setModel(filters.filter1Type);
		typeSlider.setModel(filters.filter1Type);
		frequencySlider.setModel(filters.filter1Frequency);
		resonanceSlider.setModel(filters.filter1Resonance);
		keyTrackingSlider.setModel(filters.filter1KeyTrack);
		envelopeAmountSlider.setModel(filters.filter1EnvelopeAmount);
	}

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        typeLabel = new com.laamella.syntherface.synths.gui.ParameterValueLabel();
        typeSlider = new javax.swing.JSlider();
        keyTrackingSlider = new javax.swing.JSlider();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        resonanceSlider = new javax.swing.JSlider();
        jLabel4 = new javax.swing.JLabel();
        frequencySlider = new javax.swing.JSlider();
        envelopeAmountSlider = new javax.swing.JSlider();
        jLabel5 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(153, 255, 153));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 153, 153), 3));
        setLayout(null);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18));
        jLabel1.setText("Filter 1");
        add(jLabel1);
        jLabel1.setBounds(10, 10, 80, 22);
        add(typeLabel);
        typeLabel.setBounds(10, 40, 103, 14);

        typeSlider.setOpaque(false);
        add(typeSlider);
        typeSlider.setBounds(10, 50, 140, 24);

        keyTrackingSlider.setOpaque(false);
        add(keyTrackingSlider);
        keyTrackingSlider.setBounds(10, 170, 140, 24);

        jLabel2.setText("key tracking");
        add(jLabel2);
        jLabel2.setBounds(10, 160, 140, 14);

        jLabel3.setText("resonance");
        add(jLabel3);
        jLabel3.setBounds(10, 120, 140, 14);

        resonanceSlider.setOpaque(false);
        add(resonanceSlider);
        resonanceSlider.setBounds(10, 130, 140, 24);

        jLabel4.setText("frequency");
        add(jLabel4);
        jLabel4.setBounds(10, 80, 140, 14);

        frequencySlider.setOpaque(false);
        add(frequencySlider);
        frequencySlider.setBounds(10, 90, 140, 24);

        envelopeAmountSlider.setOpaque(false);
        add(envelopeAmountSlider);
        envelopeAmountSlider.setBounds(10, 210, 140, 24);

        jLabel5.setText("envelope amount");
        add(jLabel5);
        jLabel5.setBounds(10, 200, 140, 14);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JSlider envelopeAmountSlider;
    private javax.swing.JSlider frequencySlider;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JSlider keyTrackingSlider;
    private javax.swing.JSlider resonanceSlider;
    private com.laamella.syntherface.synths.gui.ParameterValueLabel typeLabel;
    private javax.swing.JSlider typeSlider;
    // End of variables declaration//GEN-END:variables

}
